package com.lin.sunnyweather.logic.network

import com.lin.sunnyweather.SunnyWeatherApplication
import com.lin.sunnyweather.logic.model.PlaceResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface LocationService {
    @GET("v2/city/lookup?key=${SunnyWeatherApplication.TOKEN}")
    fun searchPlace(@Query("location") location: String): Call<PlaceResponse>
}